package com.pcbly.web.business.client;

import java.util.List;

import com.pcbly.web.bean.client.CustomerBean;
import com.pcbly.web.bean.client.CustomerListBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CustomerService extends BaseService<CustomerBean> {

	CustomerBean saveCustomerBean(CustomerBean bean) throws Exception;

	CustomerBean getCustomerBeanById(String id) throws Exception;

	void deleteCustomerBeanById(String id) throws Exception;

	CustomerBean updateCustomerBean(CustomerBean bean) throws Exception;

	Page<CustomerListBean> findCustomerBeanByCond(CustomerBean bean,
			Page<CustomerListBean> page, String orderByName, boolean asc)
			throws Exception;

	void saveCustomerBeanExt(String sql) throws Exception;

	String findCustomerBeanExtCreate(String tableName) throws Exception;

	String findCustomerBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCustomerBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCustomerBeanExtData(String tableName, String id)
			throws Exception;
	List<CustomerBean> findCustomerBeansByName(String name)throws Exception;
}
